mobileCanMakePurchase
Type
function
Summary
Determines if in-app purchasing is available.
Syntax
mobileCanMakePurchase()
Description
Use the mobileCanMakePurchase function to determine if the in-app purchasing service is available.
The mobileCanMakePurchase function determines if in-app purchases can be made. This depends on whether the service is available, not whether the app itself implements in-app purchases. For example if a device is off-line mobileCanMakePurchase returns false.
Examples
answer mobileCanMakePurchase()
if mobileCanMakePurchase() is true then
showPurchaseOptions
end if
Related
message: purchaseStateUpdate
command: mobilePurchaseSet, mobileDisablePurchaseUpdates, mobilePurchaseVerify, mobileRestorePurchases, mobilePurchaseSendRequest, mobilePurchaseConfirmDelivery, mobileEnablePurchaseUpdates, mobilePurchaseCreate
function: mobilePurchases, mobilePurchaseState, mobilePurchaseGet, mobilePurchaseError
Compatibility and Support
Introduced
LiveCode 5.0.1
OS
ios
android
Platforms
mobile